/**
 * 存放一些静态变量、Map 等全局可用的变量
 */
/**
 * 未知文件类型图标
 */
import unknownImg from '@/assets/images/file/file_unknown.png'
export { unknownImg}

/**
 * 文件类型图标 Map 映射
 */

import aviImg from '@/assets/images/file/file_avi.png'
import batImg from '@/assets/images/file/file_powershell.png'
import cImg from '@/assets/images/file/file_c.png'
import cPlusImg from '@/assets/images/file/file_c++.png'
import cSharpImg from '@/assets/images/file/file_c_sharp.png'
import cssImg from '@/assets/images/file/file_css.png'
import goImg from '@/assets/images/file/file_go.png'
import pyImg from '@/assets/images/file/file_python.png'
import stylImg from '@/assets/images/file/file_stylus.png'
import lessImg from '@/assets/images/file/file_less.png'
import confImg from '@/assets/images/file/file_nginx.png'
import mImg from '@/assets/images/file/file_objective_c.png'
import scssImg from '@/assets/images/file/file_scss.png'
import sassImg from '@/assets/images/file/file_sass.png'
import csvImg from '@/assets/images/file/file_csv.png'
import dmgImg from '@/assets/images/file/file_dmg.png'
import dirImg from '@/assets/images/file/dir.png'
import docImg from '@/assets/images/file/file_word.svg'
import exeImg from '@/assets/images/file/file_exe.png'
import docxImg from '@/assets/images/file/file_word.svg'
import htmlImg from '@/assets/images/file/file_html.png'
import jarImg from '@/assets/images/file/file_jar.png'
import javaImg from '@/assets/images/file/file_java.png'
import jsImg from '@/assets/images/file/file_js.png'
import jsonImg from '@/assets/images/file/file_json.png'
import jspImg from '@/assets/images/file/file_jsp.png'
import ktImg from '@/assets/images/file/file_kotlin.png'
import mp3Img from '@/assets/images/file/file_music.png'
import flacImg from '@/assets/images/file/file_flac.svg'
import oaImg from '@/assets/images/file/file_oa.png'
import openImg from '@/assets/images/file/file_open.png'
import pdfImg from '@/assets/images/file/file_pdf.png'
import phpImg from '@/assets/images/file/file_php.png'
import pptImg from '@/assets/images/file/file_ppt.svg'
import pptxImg from '@/assets/images/file/file_ppt.svg'
import propertiesImg from '@/assets/images/file/file_properties.png'
import rImg from '@/assets/images/file/file_r.png'
import rarImg from '@/assets/images/file/file_rar.png'
import rsImg from '@/assets/images/file/file_rust.png'
import rtfImg from '@/assets/images/file/file_rtf.png'
import shImg from '@/assets/images/file/file_shell.png'
import sqlImg from '@/assets/images/file/file_sql.png'
import svgImg from '@/assets/images/file/file_svg.png'
import swiftImg from '@/assets/images/file/file_swift.png'
import tsImg from '@/assets/images/file/file_typescript.png'
import txtImg from '@/assets/images/file/file_txt.png'
import vueImg from '@/assets/images/file/file_vue.png'
import xlsImg from '@/assets/images/file/file_excel.svg'
import xlsxImg from '@/assets/images/file/file_excel.svg'
import xmlImg from '@/assets/images/file/file_xml.png'
import zipImg from '@/assets/images/file/file_zip.png'
import sevenZImg from '@/assets/images/file/file_7z.svg'
import tarImg from '@/assets/images/file/file_tar.svg'
import mdImg from '@/assets/images/file/file_markdown.png'
import markdownImg from '@/assets/images/file/file_markdown.png'
import yamlImg from '@/assets/images/file/file_yaml.png'
import ymlImg from '@/assets/images/file/file_yaml.png'
export const fileImgMap = new Map([
    ['avi', aviImg],
    ['bat', batImg],
    ['c', cImg],
    ['c++', cPlusImg],
    ['c#', cSharpImg],
    ['css', cssImg],
    ['go', goImg],
    ['py', pyImg],
    ['styl', stylImg],
    ['less', lessImg],
    ['conf', confImg],
    ['m', mImg],
    ['scss', scssImg],
    ['sass', sassImg],
    ['csv', csvImg],
    ['dmg', dmgImg],
    ['dir', dirImg],
    ['doc', docImg],
    ['exe', exeImg],
    ['docx', docxImg],
    ['html', htmlImg],
    ['jar', jarImg],
    ['java', javaImg],
    ['js', jsImg],
    ['json', jsonImg],
    ['jsp', jspImg],
    ['kt', ktImg],
    ['mp3', mp3Img],
    ['flac', flacImg],
    ['oa', oaImg],
    ['open', openImg],
    ['pdf', pdfImg],
    ['php', phpImg],
    ['ppt', pptImg],
    ['pptx', pptxImg],
    ['properties', propertiesImg],
    ['r', rImg],
    ['rar', rarImg],
    ['rs', rsImg],
    ['rtf', rtfImg],
    ['sh', shImg],
    ['sql', sqlImg],
    ['svg', svgImg],
    ['swift', swiftImg],
    ['ts', tsImg],
    ['txt', txtImg],
    ['vue', vueImg],
    ['xls', xlsImg],
    ['xlsx', xlsxImg],
    ['xml', xmlImg],
    ['zip', zipImg],
    ['7z', sevenZImg],
    ['tar', tarImg],
    ['md', mdImg],
    ['markdown', markdownImg],
    ['yaml', yamlImg],
    ['yml', ymlImg]
    ])




/**
 * 支持使用 onlyoffice 打开的文件格式
 */
export const officeFileType = ['ppt', 'pptx', 'doc', 'docx', 'xls', 'xlsx']

/**
 * markdown 文件后缀
 */
export const markdownFileType = ['markdown', 'md']

/**
 * 文件展示模式选择列表时，所有可供选择的表格列名
 */
export const allColumnList = [
	'extendName',
	'fileSize',
	'uploadTime',
	'deleteTime'
]

/**
 * 可以用代码编辑器打开的文件后缀和 解析语言、 codemirror 解析模式 mode 映射关系
 * language：解析语言,
 * mime: codemirror 解析模式
 */
export const fileSuffixCodeModeMap = new Map([
	['c', { language: 'C', mime: 'text/x-csrc' }],
	['c++', { language: 'C++', mime: 'text/x-c++src' }],
	['c#', { language: 'C#', mime: 'text/x-csharp' }],
	['m', { language: 'Objective-C', mime: 'text/x-objectivec' }],
	['go', { language: 'GO', mime: 'text/x-go' }],
	['kt', { language: 'Kotlin', mime: 'text/x-java' }],
	['css', { language: 'CSS', mime: 'text/css' }],
	['less', { language: 'Less', mime: 'text/x-less' }],
	['php', { language: 'PHP', mime: 'text/x-php' }],
	['bat', { language: 'PowerShell', mime: 'application/x-powershell' }],
	['py', { language: 'Python', mime: 'text/x-python' }],
	['properties', { language: 'Properties', mime: 'text/x-properties' }],
	['R', { language: 'R', mime: 'text/x-rsrc' }],
	['rs', { language: 'Rust', mime: 'text/x-rustsrc' }],
	['scss', { language: 'Scss', mime: 'text/x-scss' }],
	['sass', { language: 'Sass', mime: 'text/x-sass' }],
	['sh', { language: 'Shell', mime: 'text/x-sh' }],
	['styl', { language: 'stylus', mime: 'text/x-styl' }],
	['xml', { language: 'XML', mime: 'text/xml' }],
	['html', { language: 'HTML', mime: 'text/html' }],
	['http', { language: 'HTTP', mime: 'text/http' }],
	['conf', { language: 'Nginx', mime: 'text/x-nginx-conf' }],
	['java', { language: 'Java', mime: 'text/x-java' }],
	['js', { language: 'JavaScript', mime: 'text/javascript' }],
	['ts', { language: 'Typescript', mime: 'text/typescript' }],
	['json', { language: 'JSON', mime: 'application/json' }],
	['jsp', { language: 'JSP', mime: 'application/x-jsp' }],
	['txt', { language: '', mime: '' }],
	['vue', { language: 'HTML', mime: 'text/html' }],
	['sql', { language: 'SQL', mime: 'text/x-sql' }],
	['swift', { language: 'Swift', mime: 'text/x-swift' }],
	['yml', { language: 'YAML', mime: 'text/x-yaml' }]
])

/**
 * codemirror 编辑器代码高亮主题列表
 */
export const codeMirrorThemeList = [
	'3024-day',
	'3024-night',
	'abbott',
	'abcdef',
	'ambiance-mobile',
	'ambiance',
	'ayu-dark',
	'ayu-mirage',
	'base16-dark',
	'base16-light',
	'bespin',
	'blackboard',
	'cobalt',
	'colorforth',
	'darcula',
	'dracula',
	'duotone-dark',
	'duotone-light',
	'eclipse',
	'elegant',
	'erlang-dark',
	'gruvbox-dark',
	'hopscotch',
	'icecoder',
	'idea',
	'isotope',
	'juejin',
	'lesser-dark',
	'liquibyte',
	'lucario',
	'material-darker',
	'material-ocean',
	'material-palenight',
	'material',
	'mbo',
	'mdn-like',
	'midnight',
	'monokai',
	'moxer',
	'neat',
	'neo',
	'night',
	'nord',
	'oceanic-next',
	'panda-syntax',
	'paraiso-dark',
	'paraiso-light',
	'pastel-on-dark',
	'railscasts',
	'rubyblue',
	'seti',
	'shadowfox',
	'solarized',
	'ssms',
	'the-matrix',
	'tomorrow-night',
	'tomorrow-night-bright',
	'tomorrow-night-eighties',
	'ttcn',
	'twilight',
	'vibrant-ink',
	'xq-dark',
	'xq-light',
	'yeti',
	'yonce',
	'zenburn'
]

/**
 * codemirror 编辑器代码字体大小
 */
export const fontSizeList = [12, 14, 16, 18, 20, 22, 24, 26, 28, 30]
